package cn.ch.system.domain;

import cn.ch.basic.domain.Base;
import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.Data;

import java.util.ArrayList;
import java.util.List;

/**
 * <p>
 * 
 * </p>
 *
 * @author Why
 * @since 2022-02-20
 */
@Data
public class Menu extends Base{

    private static final long serialVersionUID = 1L;

    private String name;
    private String component;
    private String url;
    private String icon;
    private Integer index;
    //private Long parentId;
/*查询对应部门的父id*/
    private Long parentId;
    private Menu parent;

    private String intro;
    private Boolean state = false;

    //当前部门对应的儿子   能做到无限极
    @JsonInclude(JsonInclude.Include.NON_EMPTY)
    List<Menu> children = new ArrayList<>();

}
